package com.whfc.fmam.dao;

import com.whfc.fmam.entity.bo.FmamWarehouseIpc;
import com.whfc.fmam.entity.dto.FmamWarehouseIpcDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FmamWarehouseIpcMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FmamWarehouseIpc record);

    int insertSelective(FmamWarehouseIpc record);

    FmamWarehouseIpc selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FmamWarehouseIpc record);

    int updateByPrimaryKey(FmamWarehouseIpc record);

    /**
     * 根据磅房查询
     *
     * @param warehouseId
     * @return
     */
    List<FmamWarehouseIpcDTO> selectByWarehouseId(@Param("warehouseId") Integer warehouseId);

    /**
     * 根据项目查询
     *
     * @param deptId
     * @return
     */
    List<FmamWarehouseIpcDTO> selectByDeptId(@Param("deptId") Integer deptId);
}